package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Employee;
import cn.wolfcode.crm.query.EmployeeQueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IEmployeeService {

    int deleteByPrimaryKey(Long id);

    void insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll(EmployeeQueryObject qo);

    void updateByPrimaryKey(Employee record);

    PageResult query(EmployeeQueryObject qo);

    Employee getByUsername(String username);

    void changeState(Long id);

    void changePassword(Long id);

    List<Long> getRoleIdByEmpId(Long employeeId);

    List<Employee> selectlist();

    List<Employee> selectAll();
}
